package copy.express.pojo;

import copy.express.pojo.type.Type;

import java.util.ArrayList;
import java.util.List;

public class EqualsNode implements NodeType{

    private  NodeType leftNode;
    private  NodeType rightNode;
    private Type type;

    public EqualsNode( NodeType leftNode, NodeType rightNode,Type t) {
        this.leftNode = leftNode;
        this.rightNode = rightNode;
        type = t;
    }

    @Override
    public Object getValue() {
        List list = new ArrayList();
        list.add(leftNode);
        list.add(rightNode);
        return list;
    }

    @Override
    public String getStringValue() {
        return null;
    }

    @Override
    public void setValue(Object value) {

    }

    @Override
    public Type getType() {
        return Type.EqualsType.DEFAULT;
    }

    @Override
    public void setType(Type type) {

    }

    public NodeType getLeftNode() {
        return leftNode;
    }

    public NodeType getRightNode() {
        return rightNode;
    }
}
